package com.sz.stock.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class POSExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public POSExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStockPosIdIsNull() {
            addCriterion("STOCK_POS_ID is null");
            return (Criteria) this;
        }

        public Criteria andStockPosIdIsNotNull() {
            addCriterion("STOCK_POS_ID is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosIdEqualTo(Integer value) {
            addCriterion("STOCK_POS_ID =", value, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdNotEqualTo(Integer value) {
            addCriterion("STOCK_POS_ID <>", value, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdGreaterThan(Integer value) {
            addCriterion("STOCK_POS_ID >", value, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_ID >=", value, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdLessThan(Integer value) {
            addCriterion("STOCK_POS_ID <", value, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_ID <=", value, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdIn(List<Integer> values) {
            addCriterion("STOCK_POS_ID in", values, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdNotIn(List<Integer> values) {
            addCriterion("STOCK_POS_ID not in", values, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_ID between", value1, value2, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_ID not between", value1, value2, "stockPosId");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridIsNull() {
            addCriterion("STOCK_POS_USERID is null");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridIsNotNull() {
            addCriterion("STOCK_POS_USERID is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridEqualTo(Integer value) {
            addCriterion("STOCK_POS_USERID =", value, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridNotEqualTo(Integer value) {
            addCriterion("STOCK_POS_USERID <>", value, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridGreaterThan(Integer value) {
            addCriterion("STOCK_POS_USERID >", value, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_USERID >=", value, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridLessThan(Integer value) {
            addCriterion("STOCK_POS_USERID <", value, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_USERID <=", value, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridIn(List<Integer> values) {
            addCriterion("STOCK_POS_USERID in", values, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridNotIn(List<Integer> values) {
            addCriterion("STOCK_POS_USERID not in", values, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_USERID between", value1, value2, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_USERID not between", value1, value2, "stockPosUserid");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeIsNull() {
            addCriterion("STOCK_POS_CODE is null");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeIsNotNull() {
            addCriterion("STOCK_POS_CODE is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeEqualTo(String value) {
            addCriterion("STOCK_POS_CODE =", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeNotEqualTo(String value) {
            addCriterion("STOCK_POS_CODE <>", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeGreaterThan(String value) {
            addCriterion("STOCK_POS_CODE >", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_POS_CODE >=", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeLessThan(String value) {
            addCriterion("STOCK_POS_CODE <", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeLessThanOrEqualTo(String value) {
            addCriterion("STOCK_POS_CODE <=", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeLike(String value) {
            addCriterion("STOCK_POS_CODE like", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeNotLike(String value) {
            addCriterion("STOCK_POS_CODE not like", value, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeIn(List<String> values) {
            addCriterion("STOCK_POS_CODE in", values, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeNotIn(List<String> values) {
            addCriterion("STOCK_POS_CODE not in", values, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeBetween(String value1, String value2) {
            addCriterion("STOCK_POS_CODE between", value1, value2, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCodeNotBetween(String value1, String value2) {
            addCriterion("STOCK_POS_CODE not between", value1, value2, "stockPosCode");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyIsNull() {
            addCriterion("STOCK_POS_COMPANY is null");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyIsNotNull() {
            addCriterion("STOCK_POS_COMPANY is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyEqualTo(String value) {
            addCriterion("STOCK_POS_COMPANY =", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyNotEqualTo(String value) {
            addCriterion("STOCK_POS_COMPANY <>", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyGreaterThan(String value) {
            addCriterion("STOCK_POS_COMPANY >", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_POS_COMPANY >=", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyLessThan(String value) {
            addCriterion("STOCK_POS_COMPANY <", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyLessThanOrEqualTo(String value) {
            addCriterion("STOCK_POS_COMPANY <=", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyLike(String value) {
            addCriterion("STOCK_POS_COMPANY like", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyNotLike(String value) {
            addCriterion("STOCK_POS_COMPANY not like", value, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyIn(List<String> values) {
            addCriterion("STOCK_POS_COMPANY in", values, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyNotIn(List<String> values) {
            addCriterion("STOCK_POS_COMPANY not in", values, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyBetween(String value1, String value2) {
            addCriterion("STOCK_POS_COMPANY between", value1, value2, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosCompanyNotBetween(String value1, String value2) {
            addCriterion("STOCK_POS_COMPANY not between", value1, value2, "stockPosCompany");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceIsNull() {
            addCriterion("STOCK_POS_TRADBLANCE is null");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceIsNotNull() {
            addCriterion("STOCK_POS_TRADBLANCE is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceEqualTo(Integer value) {
            addCriterion("STOCK_POS_TRADBLANCE =", value, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceNotEqualTo(Integer value) {
            addCriterion("STOCK_POS_TRADBLANCE <>", value, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceGreaterThan(Integer value) {
            addCriterion("STOCK_POS_TRADBLANCE >", value, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_TRADBLANCE >=", value, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceLessThan(Integer value) {
            addCriterion("STOCK_POS_TRADBLANCE <", value, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_TRADBLANCE <=", value, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceIn(List<Integer> values) {
            addCriterion("STOCK_POS_TRADBLANCE in", values, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceNotIn(List<Integer> values) {
            addCriterion("STOCK_POS_TRADBLANCE not in", values, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_TRADBLANCE between", value1, value2, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosTradblanceNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_TRADBLANCE not between", value1, value2, "stockPosTradblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceIsNull() {
            addCriterion("STOCK_POS_KYBLANCE is null");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceIsNotNull() {
            addCriterion("STOCK_POS_KYBLANCE is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceEqualTo(Integer value) {
            addCriterion("STOCK_POS_KYBLANCE =", value, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceNotEqualTo(Integer value) {
            addCriterion("STOCK_POS_KYBLANCE <>", value, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceGreaterThan(Integer value) {
            addCriterion("STOCK_POS_KYBLANCE >", value, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_KYBLANCE >=", value, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceLessThan(Integer value) {
            addCriterion("STOCK_POS_KYBLANCE <", value, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_KYBLANCE <=", value, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceIn(List<Integer> values) {
            addCriterion("STOCK_POS_KYBLANCE in", values, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceNotIn(List<Integer> values) {
            addCriterion("STOCK_POS_KYBLANCE not in", values, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_KYBLANCE between", value1, value2, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosKyblanceNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_KYBLANCE not between", value1, value2, "stockPosKyblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceIsNull() {
            addCriterion("STOCK_POS_DJBLANCE is null");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceIsNotNull() {
            addCriterion("STOCK_POS_DJBLANCE is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceEqualTo(Integer value) {
            addCriterion("STOCK_POS_DJBLANCE =", value, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceNotEqualTo(Integer value) {
            addCriterion("STOCK_POS_DJBLANCE <>", value, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceGreaterThan(Integer value) {
            addCriterion("STOCK_POS_DJBLANCE >", value, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_DJBLANCE >=", value, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceLessThan(Integer value) {
            addCriterion("STOCK_POS_DJBLANCE <", value, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_POS_DJBLANCE <=", value, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceIn(List<Integer> values) {
            addCriterion("STOCK_POS_DJBLANCE in", values, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceNotIn(List<Integer> values) {
            addCriterion("STOCK_POS_DJBLANCE not in", values, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_DJBLANCE between", value1, value2, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosDjblanceNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_POS_DJBLANCE not between", value1, value2, "stockPosDjblance");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyIsNull() {
            addCriterion("STOCK_POS_MONEY is null");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyIsNotNull() {
            addCriterion("STOCK_POS_MONEY is not null");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyEqualTo(BigDecimal value) {
            addCriterion("STOCK_POS_MONEY =", value, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyNotEqualTo(BigDecimal value) {
            addCriterion("STOCK_POS_MONEY <>", value, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyGreaterThan(BigDecimal value) {
            addCriterion("STOCK_POS_MONEY >", value, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_POS_MONEY >=", value, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyLessThan(BigDecimal value) {
            addCriterion("STOCK_POS_MONEY <", value, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_POS_MONEY <=", value, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyIn(List<BigDecimal> values) {
            addCriterion("STOCK_POS_MONEY in", values, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyNotIn(List<BigDecimal> values) {
            addCriterion("STOCK_POS_MONEY not in", values, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_POS_MONEY between", value1, value2, "stockPosMoney");
            return (Criteria) this;
        }

        public Criteria andStockPosMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_POS_MONEY not between", value1, value2, "stockPosMoney");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}